/* 列表页 */
.page-list {
  background: #f9f9f9;

  .goods-list {
    padding-bottom: 30px;
  }
}

.page-list.search-list {
  min-height: calc(100vh - 245px);
  overflow: hidden;
}

.page-list.search-list {
  .goods-list {
    .pages {
      margin: 30px 30px 0 0;
    }

    padding: 0 20px 30px;
  }
}

/* 列表页 end */

/* 筛选 */
.page-list {
  .goods-sort {
    background: #fff;
    padding: 0 20px;
    margin-bottom: 20px;

    .sort-con {
      display: flex;
      padding: 20px 0 0 10px;
      border-bottom: 1px dashed #ddd;

      &:last-child {
        border: 0;
      }

      .name {
        color: #999;
        margin-right: 20px;
      }

      .group {
        flex: 1;
        margin-bottom: 4px;

        .item {
          display: inline-block;
          padding: 0 30px 16px 0;
          transition: all .2s;
          -webkit-transition: all .2s;
          cursor: pointer;

          &:hover {
            color: #e1251b;
          }
        }

        .item.active {
          color: #e1251b;
        }
      }
    }

    .sorts {
      .arrow-down {
        display: inline-block;
        vertical-align: top;
        margin-left: 5px;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-radius: 2px;
        border-top: 5px solid #999;
        margin-top: 5px;
      }

      .arrow-up {
        display: inline-block;
        vertical-align: top;
        margin-left: 5px;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-radius: 2px;
        border-bottom: 5px solid #999;
      }

      .item {
        &:hover {
          .arrow-up {
            border-bottom-color: #e1251b;
          }

          .arrow-down {
            border-top-color: #e1251b;
          }
        }
      }

      .item.active {
        .arrow-up {
          border-bottom-color: #e1251b;
        }

        .arrow-down {
          border-top-color: #e1251b;
        }
      }
    }
  }
}

/* 筛选 */

/* 拼团专区 */
.page-list.group-buy {
  background: #fff;

  .goods-list {
    margin-top: 10px;
    padding-bottom: 0;
  }
}

.page-list {
  .list-banner {
    margin-top: 35px;
    font-size: 0;
  }
}

/* 拼团专区 end */

/* 秒杀专场 */
.page-list.flash-sale {
  background: #fff;
}

.flash-sale {
  .goods-list {
    margin-top: 10px;
    padding-bottom: 0;

    .list-con {
      .item {
        .time-box {
          background: #f9f9f9;
          display: flex;
          align-items: center;
          padding: 0 10px;
          position: absolute;
          left: 0;
          top: 240px;
          height: 45px;
          width: 100%;
          box-sizing: border-box;

          .text {
            margin-right: 10px;
          }

          .time {
            display: flex;
            align-items: center;
            font-size: 14px;

            .time-item {
              padding: 2px 5px;
              background: #333;
              color: #fff;
              border-radius: 2px;
              font-family: arial, sans-serif;
            }
          }

          .time-text {
            margin: 0 5px;
            color: #666;
            font-family: arial, sans-serif;
          }
        }

        .goods-name {
          word-break: break-all;
          line-break: anywhere;
          font-size: 14px;
          line-height: 20px;
          padding: 0 10px;
          margin-top: 12px;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 1;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .rest-number {
          margin-top: 10px;
          display: flex;
          align-items: center;
          padding: 0 10px;

          .number-box {
            flex: 1;
            border: 1px solid #ee5e57;
            background: #fff;
            height: 10px;
            border-radius: 20px;
            overflow: hidden;

            .percent {
              background: #ffd8d8;
              display: block;
              height: 10px;
            }
          }

          .number-text {
            color: #999;
            width: 60px;
            margin-left: 10px;
            font-family: arial, sans-serif;
          }
        }

        .goods-price {
          display: flex;
          align-items: center;
          margin-top: 20px;
          padding: 0 10px;

          .price {
            font-size: 14px;
            font-weight: 600;

            .big {
              font-size: 20px;
            }
          }

          .old-price {
            color: #999;
            text-decoration: line-through;
            margin-left: 5px;
            margin-top: 3px;
            font-family: arial, sans-serif;
          }
        }

        .sellout-text {
          position: absolute;
          left: 90px;
          top: 90px;
          width: 95px;
          height: 95px;
          border-radius: 50%;
          background: rgba(0, 0, 0, .4);
          color: #fff;
          text-align: center;
          display: flex !important;
          align-items: center;
          justify-content: center;
          font-size: 14px;
        }
      }

      .item.sell-out {
        .sellout-text {
          display: block;
        }
      }
    }
  }
}

/* 秒杀专场 end */

/* 优选好店 */

/* 优选好店 end */
.list-empty {
  display: block;
  font-size: 18px;
  color: #bbb;
  width: 100%;
  line-height: 212px;
  text-align: center;
  letter-spacing: 1px;
}

.center {
  vertical-align: top;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
  max-width: 1000px;
}

.el-pagination {
  text-align: right;
  padding: 20px 30px 0;

  span {
    &:not([class*='suffix']) {
      padding: 0 8px !important;
    }
  }
}

.pagination {
  .el-pagination {
    button {
      padding: 0 8px !important;
    }
  }

  .el-pagination.is-background {
    .btn-next {
      background-color: #fff !important;
    }
  }

  .el-pagination__editor.el-input {
    .el-input__inner {
      width: 30px !important;
    }
  }
}

.el-pagination.is-background {
  .btn-prev {
    background-color: #fff !important;
  }

  .el-pager {
    li {
      background-color: #fff !important;
    }
  }
}
